$(document).ready   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
$(document).ready(function(){
2
    $('.amarkal-settings-button').on('click',function(e){
3
        e.preventDefault();
4
        var $button = $(this);
5
6
        if(!$button.data('disabled'))
7
        {
8
            $('.amarkal-settings-button').data('disabled',true);
9
            $button.addClass('processing');
10
11
            Amarkal.settings[$button.val()](function(){
0 ignored issues
show
Bug introduced by
The variable Amarkal seems to be never declared. If this is a global, consider adding a /** global: Amarkal */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
12
                $button.removeClass('processing');
13
                $('.amarkal-settings-button').data('disabled',false);
14
            });
15
        }
16
    });
17
});